#!/bin/sh

case "$1" in
start)
	/usr/bin/oscam -b -c /etc/tuxbox/config/
	;;
stop)
	killall -9 oscam
	;;
restart|reload)
	$0 stop
	sleep 1
	$0 start
	;;
version)
	echo "1.2"
	;;
info)
	echo "oscam 1.2"
	;;
*)
	echo "Usage: $0 start|stop|restart"
	exit 1
	;;
esac
exit 0
